import request from '@/utils/request'

// 查询职岗积分规格列表
export function listFunRule(query) {
  return request({
    url: '/system/funRule/list',
    method: 'get',
    params: query
  })
}

// 查询职岗积分规格详细
export function getFunRule(id) {
  return request({
    url: '/system/funRule/' + id,
    method: 'get'
  })
}

// 新增职岗积分规格
export function addFunRule(data) {
  return request({
    url: '/system/funRule',
    method: 'post',
    data: data
  })
}

// 修改职岗积分规格
export function updateFunRule(data) {
  return request({
    url: '/system/funRule',
    method: 'put',
    data: data
  })
}

// 删除职岗积分规格
export function delFunRule(id) {
  return request({
    url: '/system/funRule/' + id,
    method: 'delete'
  })
}
